package com.platform.data.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.platform.common.annotation.Excel;
import com.platform.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 设备告警规则对象 alarm_rule
 * 
 * @author wangqi
 * @date 2020-08-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("alarm_rule")
public class RuleAlarm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 告警描述 */
    @Excel(name = "告警描述")
    private String alarmMsg;

    /** 告警级别 */
    @Excel(name = "告警级别")
    private String alarmType;



    /** 测点名称 */
    @Excel(name = "测点名称1")
    private String alarmName;

    /** 告警判据 */
    @Excel(name = "告警判据1")
    private String alarmBasis;
    /** 告警限值 */
    @Excel(name = "告警限值1")
    private String alarmLimits;
    /** 测点名称 */
    @Excel(name = "测点名称2")
    private String alarmNamef;

    /** 告警判据 */
    @Excel(name = "告警判据2")
    private String alarmBasisf;
    /** 告警限值 */
    @Excel(name = "告警限值2")
    private String alarmLimitsf;


    /** 维护人 */
    @Excel(name = "维护人")
    private String alarmMaintainer;

    /** 维护时间 */
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date alarmTime;

    /** 是否启用 */
    @NotBlank(message = "是否启用不能为空")
    @Excel(name = "是否启用")
    private String enable;
    @TableField(exist = false)
    private String createBy;
    @TableField(exist = false)
    private Date createTime;




    @TableField(exist = false)
    private String updateBy;

    @TableField(exist = false)
    private Date updateTime;

}
